package com.ruoyi.bookkeeping.domain.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: 
 * @Date: 2023/02/25/15:27
 * @Description:
 */
@Data
@ApiModel(value = "GetBookNewsParam",description = "获取新闻传参实体类")
public class GetBookNewsParam {
    @NotNull
    @ApiModelProperty(value = "当前第几页", required = true)
    private Integer pageNum;

    @NotNull
    @ApiModelProperty(value = "每页多少条", required = true)
    private Integer pageSize;

    @ApiModelProperty("新闻标题")
    @Excel(name = "新闻标题")
    private String newsTitle;

    @ApiModelProperty("新闻类型")
    @Excel(name = "新闻类型")
    private String nesType;

    @ApiModelProperty("新闻时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newsTime;

    @ApiModelProperty("新闻作者")
    @Excel(name = "新闻作者")
    private String newsAuthor;
}
